const view={ template:'<div>测试</div>'};
const view1={ template:'<div>测试1</div>'};
const routes=[
    {path:'/my/test',component:view},
    {path:'/my/test2',component:view1}
];
const  router=new VueRouter({
    routes
});

var Main = {
    data() {
        return {
            isCollapse:false,
            activeIndex: '1',
            activeIndex2: '1'
        };
    },
    methods: {
        handleSelect(key, keyPath) {
            console.log(key, keyPath);
        },
        handleOpen(key, keyPath) {
            console.log(key, keyPath);
        },
        handleClose(key, keyPath) {
            console.log(key, keyPath);
        }
    },
    router
};
var Ctor = Vue.extend(Main);
new Ctor().$mount('#app');



